package com.example.wechat.model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_wechat_group_member")
public class GroupMember {
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	@TableField("group_id")
	private Long groupId;
	
	@TableField("user_id")
	private String userId;
	
	@TableField("user_name")
	private String userName;
	
	@TableField("user_avatar")
	private String userAvatar;
	
	@TableField("member_role")
	private Integer memberRole;
	
	@TableField("join_time")
	private LocalDateTime joinTime;
	
	@TableField("nickname_in_group")
	private String nicknameInGroup;
	
	@TableField("last_read_message_id")
	private Long lastReadMessageId;
	
	private Integer status;
	
	@TableField("create_time")
	private LocalDateTime createTime;
	
	@TableField("update_time")
	private LocalDateTime updateTime;
	
	@TableField("del_flag")
	private Boolean delFlag;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAvatar() {
		return userAvatar;
	}

	public void setUserAvatar(String userAvatar) {
		this.userAvatar = userAvatar;
	}

	public Integer getMemberRole() {
		return memberRole;
	}

	public void setMemberRole(Integer memberRole) {
		this.memberRole = memberRole;
	}

	public LocalDateTime getJoinTime() {
		return joinTime;
	}

	public void setJoinTime(LocalDateTime joinTime) {
		this.joinTime = joinTime;
	}

	public String getNicknameInGroup() {
		return nicknameInGroup;
	}

	public void setNicknameInGroup(String nicknameInGroup) {
		this.nicknameInGroup = nicknameInGroup;
	}

	public Long getLastReadMessageId() {
		return lastReadMessageId;
	}

	public void setLastReadMessageId(Long lastReadMessageId) {
		this.lastReadMessageId = lastReadMessageId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}
}